import Layout from '@/views/layout/Layout'

const productAdminRouter = {
      path: "/product",
      component: Layout,
      redirect: "/product/product",
      name: "product",
      alwaysShow: true,
      meta: {
        title: "寄卖中心",
        icon: "example",
        roles: 'sell_centre'
      },
      children : [
        {
          path: "/product/productAdmin",
          component: () => import("@/views/product/productAdmin/productAdmin"),
          name: "productAdmin",
          meta: {
            title: "商品管理",
            roles:'product_admin',
          }
        },
        {
          path: "/product/productAdmin/children",
          component: () => import("@/views/product/productAdmin/children/addProduct"),
          name: "addProduct",
          hidden : true,
          meta: {
            title: "新增商品",
            roles:'product_admin',
          }
        },
        {
          path: "/product/productAdmin/basic",
          component: () => import("@/views/product/productAdmin/basic/basic"),
          name: "basic",
          hidden : true,
          meta: {
            title: "配置基本信息",
            roles:'product_admin',
          },
          // children : [
          //   {
          //     path: "/product/productAdmin/basic/info",
          //     component: () => import("@/views/product/productAdmin/basic/info/info"),
          //     name: "info",
          //   },
          //   {
          //     path: "/product/productAdmin/basic/qa",
          //     component: () => import("@/views/product/productAdmin/basic/qa/qa"),
          //     name: "qa",
          //   },
          // ]
        },
        {
          path: "/product/brand",
          component: () => import("@/views/product/brand/brand"),
          name: "brand",
          meta: {
            title: "品牌管理",
            roles:'product_brand',
          }
        },
        {
          path: "/product/productClassify",
          component: () => import("@/views/product/productClassify/productClassify"),
          name: "productClassify",
          meta: {
            title: "商品分类",
            roles:'product_category',
          }
        },
        {
          path: "/product/productClassify/children",
          component: () => import("@/views/product/productClassify/children/twoClass"),
          name: "twoClass",
          hidden : true,
          meta: {
            title: "商品分类二级分类",
            roles:'product_category',
          }
        },
        {
          path: "/product/local",
          component: () => import("@/views/product/local/local"),
          name: "local",
          meta: {
            title: "本机智能检测模板",
            roles:'product_intelligent_detection_tpl',
          }
        },
        {
          path: "/product/productEst",
          component: () => import("@/views/product/productEst/productEst"),
          name: "productEst",
          meta: {
            title: "商品估价条件模板",
            roles:'consign_product_condition_tpl',
          }
        },
        {
          path: "/product/productEst/children",
          component: () => import("@/views/product/productEst/children/option"),
          name: "option",
          hidden : true,
          meta: {
            title: "商品估计选项",
            roles:'consign_product_condition_tpl',
          }
        },
        {
          path: "/product/shop",
          component: () => import("@/views/product/shop/shop"),
          name: "shop",
          meta: {
            title: "门店管理",
            roles:'consign_store',
          }
        },
        {
          path: "/product/consignIndent",
          component: () => import("@/views/product/consignIndent/consignIndent"),
          name: "consignIndent",
          meta: {
            title: "寄卖订单",
            roles:'jm_order',
          }
        },
        {
          path: "details",
          component: () => import("@/views/product/ransomIndent/details/details"),
          name: "details",
          hidden : true,
          meta: {
            title: "寄卖订单详情",
            roles:'product_category',
          }
        },
        {
          path: "/product/ransomIndent",
          component: () => import("@/views/product/ransomIndent/ransomIndent"),
          name: "ransomIndent",
          meta: {
            title: "赎回订单",
            roles:'jm_sh_order',
          }
        },
        {
          path: "/product/shop/addShop",
          component: () => import("@/views/product/shop/addShop/addShop"),
          name: "addShop",
          hidden : true,
          meta: {
            title: "新增门店",
            roles:'consign_store',
          }
        },
      ]
}
export default productAdminRouter
